package com.sun.jdbc.Pojo;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * students
 * @author Void
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class Students extends StudentsKey implements Serializable {
    /**
     * 密码
     */
    private String password;

    public Students(Integer studentId,String studentNo,String password, String studentName, String sex, Integer gradeId, String phone, String address, Date birthday, String email) {
        super(studentId, studentNo);
        this.password = password;
        this.studentName = studentName;
        this.sex = sex;
        this.gradeId = gradeId;
        this.phone = phone;
        this.address = address;
        this.birthday = birthday;
        this.email = email;
    }

    public Students() {
    }

    /**
     * 姓名
     */
    private String studentName;

    /**
     * 性别
     */
    private String sex;

    /**
     * 年级
     */
    private Integer gradeId;

    /**
     * 电话号码
     */
    private String phone;

    /**
     * 现住址
     */
    private String address;

    /**
     * 生日
     */
    private Date birthday;

    /**
     * 电子邮件
     */
    private String email;

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        return "Students{" +
                "studentId='" + getStudentId() + '\'' +
                "studentNo"+getStudentNo() + '\'' +
                "password='" + password + '\'' +
                ", studentName='" + studentName + '\'' +
                ", sex='" + sex + '\'' +
                ", gradeId=" + gradeId +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", birthday=" + birthday +
                ", email='" + email + '\'' +
                '}';
    }
}